package com.ruoyi.paipan.common;

/**
 * @author tiemeng
 * * @date 2024/11/20
 */
public class FotoFestival {
    private String name;
    private String result;
    private boolean everyMonth;
    private String remark;

    public FotoFestival(String name, String result, boolean everyMonth, String remark) {
        this.name = name;
        this.result = result == null? "" : result;
        this.everyMonth = everyMonth;
        this.remark = remark == null? "" : remark;
    }

    public FotoFestival(String name) {
        this.name = name;
    }

    public FotoFestival(String name, String result) {
        this.name = name;
        this.result = result;
    }

    public FotoFestival(String name, String result, boolean everyMonth) {
        this.name = name;
        this.result = result;
        this.everyMonth = everyMonth;
    }

    @Override
    public String toString() {
        return name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public Boolean getEveryMonth() {
        return everyMonth;
    }

    public void setEveryMonth(Boolean everyMonth) {
        this.everyMonth = everyMonth;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toFullString()
    {
        StringBuilder s = new StringBuilder();
        s.append(name);
        if (null != result && result.length() > 0) {
            s.append(" ").append(result);
        }
        if (null != remark && remark.length() > 0) {
            s.append(" ").append(remark);
        }
        return s.toString();
    }
}
